-
Notifications
You must be signed in to change notification settings - Fork 32
✨ Deletion of trashed projects/folders upon expiration of retention time #7246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Deletion of trashed projects/folders upon expiration of retention time #7246
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7246 +/- ##
==========================================
+ Coverage 87.08% 87.77% +0.68%
==========================================
Files 1679 1671 -8
Lines 64869 64056 -813
Branches 1115 1140 +25
==========================================
- Hits 56491 56222 -269
+ Misses 8060 7509 -551
- Partials 318 325 +7
Continue to review full report in Codecov by Sentry.
|
2125de1 to
861b2f2
Compare
6a2e54f to
5d9fc81
Compare
58116c4 to
9da3764
Compare
services/web/server/src/simcore_service_webserver/projects/_projects_db.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_projects_db.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_projects_db.py
Outdated
Show resolved
Hide resolved
|
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: where is this ran, in which service? The webserver or the GC?
How do you manage to make this only run in one copy?
services/web/server/src/simcore_service_webserver/projects/_trash_service.py
Outdated
Show resolved
Hide resolved
This is what I tried to explain in the description :-) HEre some concrete answers
the background is in the webserver-GC (see tasks_trash)
There is only one replica of the webserver-GC. The tasks of this service suffer from this issue as well, so I plan to upgrade them all (but in a separate PR, otherwise it is messy) |
c6a81f8 to
1433f19
Compare
|



What do these changes do?
This PR is a continuation of the work on the trash feature. Specifically:
trash._service.delete_expired_trashtrash.trash_service)webserver-GCservice to delete trashed items over the retention timeTRASH_RETENTION_DAYSGARBAGE_COLLECTOR_PRUNE_APIKEYS_INTERVAL_S(for now)UnsetTRASH_RETENTION_DAYSmissing env var to thewebserver-GCoption and sorted env-vars in the docker-composeNext steps
Related issue/s
How to test
Dev-ops